package com.yanqu.road.server.cmd.activity.platform;

import com.yanqu.road.entity.enums.eGamePlayerEventType;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.PlatformActivityProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = GameProtocol.S_MEI_TUAN_DESKTOP_SET,desc = "美团桌面设置")
public class MeiTuanDesktopSetCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.notifyListener(eGamePlayerEventType.AddMeiTuanDesktop.getValue(), 1);

        player.sendPacket(Protocol.U_MEI_TUAN_DESKTOP_SET, PlatformActivityProto.MeiTuanDesktopSetRespMsg.newBuilder().setRet(0));
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
